// 使用ObjectDirective声明指令类型即可，因为源码内部指定了默认类型说明
export const customDirective = {
  beforeMount(el, binding, vnode, prvVnode) {
    console.log(el, binding, vnode, prvVnode)
  },
  onMounted() {
    console.log('执行mounted')
  },

  onBeforeUpdate() {
    console.log('执行beforeUpdate')
  },
  onUpdate() {
    console.log('执行update')
  }
}
